package com.CampusForum.community.entity;

import java.util.Date;

public class DiscussPost {

    // 自增id
    private int id;
    // 用户id
    private int userId;
    // 标题
    private String title;
    // 内容
    private String content;
    // 类型 0-普通 1-置顶
    private int type;
    // 状态 0-正常 1-精华 2-拉黑
    private int status;
    // 创建时间
    private Date createTime;
    // 评论数量
    private int commentCount;

    private double score;
 
    public int getId() {
        return id;
    }
 
    public void setId(int id) {
        this.id = id;
    }
 
    public int getUserId() {
        return userId;
    }
 
    public void setUserId(int userId) {
        this.userId = userId;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public int getType() {
        return type;
    }
 
    public void setType(int type) {
        this.type = type;
    }
 
    public int getStatus() {
        return status;
    }
 
    public void setStatus(int status) {
        this.status = status;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public int getCommentCount() {
        return commentCount;
    }
 
    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }
 
    public double getScore() {
        return score;
    }
 
    public void setScore(double score) {
        this.score = score;
    }
 
    @Override
    public String toString() {
        return "DiscussPost{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", createTime=" + createTime +
                ", commentCount=" + commentCount +
                ", score=" + score +
                '}';
    }
}